home *** CD-ROM | disk | FTP | other *** search
- /*
- File: AppleEventHandling.h
-
- Contains: Minimalist support for the required and Display Manager suites
- To really support AppleScript™, we’ll do more work in here.
-
- Written by: Dave Falkenburg
-
- Copyright: © 1993 by Dave Falkenburg, all rights reserved.
-
- Change History (most recent first):
- */
-
- #ifndef _APPLEEVENTHANDLING_
- #define _APPLEEVENTHANDLING_
-
- #ifndef __APPLEEVENTS__
- #include <AppleEvents.h>
- #endif
-
- #ifndef __OCESTANDARDMAIL__
- #include <OCEStandardMail.h>
- #endif
-
- #ifndef _APPLIB_
- #include "AppLib.h"
- #endif
-
-
- void InstallAppleEventHandlers(void);
- OSErr CheckAppleEventForMissingParams(AppleEvent * theAppleEvent);
-
- // Handlers for the Required Suite:
-
- typedef OSErr (*EachDocumentProcPtr)(LetterDescriptor *aFile,void * param);
- OSErr ForEachDocumentInList(AEDescList documentList,EachDocumentProcPtr documentProc,void * documentParam);
-
- pascal OSErr HandleOpenApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
- pascal OSErr HandleOpenDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
- pascal OSErr HandlePrintDocuments(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
- pascal OSErr HandleQuitApplication(AppleEvent * theAppleEvent,AppleEvent * reply, long refCon);
-
-
- // Display Manager:
-
- pascal OSErr HandleSystemConfigNotice(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon);
-
-
- #endif
-